Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Only load key dimension and measure values during chart initialization #1890

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Nov 18, 2024

Closes #1658

This PR optimizes performance of initializing charts based on cubes with non-key dimensions by limiting these dimensions and measures selection to only include key dimensions.

We do it by re-using DataCubePreview query, which in most of the cases is loaded and cached before starting a new chart that loads components metadata, so we know which dimension is a key dimension.

Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 3:34pm

@bprusinowski bprusinowski force-pushed the perf/do-not-fetch-non-key-dimensions branch from 9bb172c to b6b3b22 Compare November 18, 2024 16:22
bprusinowski added a commit that referenced this pull request Nov 19, 2024
...as the DataCubePreview will be re-used in #1890
Copy link
Contributor

@noahonyejese noahonyejese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

bprusinowski added a commit that referenced this pull request Nov 20, 2024
...as the DataCubePreview will be re-used in #1890
@bprusinowski bprusinowski merged commit ab6cf2c into main Nov 20, 2024
6 of 10 checks passed
@bprusinowski bprusinowski deleted the perf/do-not-fetch-non-key-dimensions branch November 20, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

possible filter and components query needlessly fires twice - and takes a very long time
2 participants